package com.gec.hawaste.mapper;

import com.gec.hawaste.entity.SysArea;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 区域表 Mapper 接口
 * </p>
 *
 * @author chenxys
 * @since 2022-07-01
 */
@Mapper
public interface SysAreaMapper extends BaseMapper<SysArea> {

    @Select("SELECT * FROM sys_area WHERE sys_area.id=#{officeAreaId}")
    SysArea findByOfficeId(@Param("officeAreaId") Long officeAreaId);
}
